package com.wxtt.android.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 说明：内容列表实体对象
 * <p/>
 * 作者：fanly
 * <p/>
 * 时间：2016/1/19 11:22
 * <p/>
 * 版本：verson 1.0
 */
public class WxArticleBean extends Model{

    private String id;
    private String title;
    private String source;
    private String firstImg;
    private String mark;
    private String url;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getFirstImg() {
        return firstImg;
    }

    public void setFirstImg(String firstImg) {
        this.firstImg = firstImg;
    }

    public String getMark() {
        return mark;
    }

    public void setMark(String mark) {
        this.mark = mark;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(id);
        dest.writeString(title);
        dest.writeString(source);
        dest.writeString(firstImg);
        dest.writeString(mark);
        dest.writeString(url);
    }

    public static final Parcelable.Creator<WxArticleBean> CREATOR =
            new Creator<WxArticleBean>() {

                @Override
                public WxArticleBean createFromParcel(Parcel source) {

                    WxArticleBean bean = new WxArticleBean();
                    bean.setId(source.readString());
                    bean.setTitle(source.readString());
                    bean.setSource(source.readString());
                    bean.setFirstImg(source.readString());
                    bean.setMark(source.readString());
                    bean.setUrl(source.readString());
                    return bean;
                }

                @Override
                public WxArticleBean[] newArray(int size) {
                    return new WxArticleBean[size];
                }
            };
}
